package com.zy.web.demo.duoxiancheng.demo19;

/**
 * @author <a href="mailto:zhouyong@cqyyt.com">zy</a>
 * @version 1.0
 * @date 2020/8/19 15:46
 */
public class Test19 {

    public static void main(String[] args) {
        String lock = new String("");
        Producer p = new Producer(lock);
        Consumer c = new Consumer(lock);
        ThreadA19 A = new ThreadA19(p);
        ThreadB19 B = new ThreadB19(c);
        A.start();
        B.start();
    }

}
